package com.yangcangclub.trolley.bean;

import java.util.Date;

/**
 * 购物车实体类
 * Created by 肖明明 on 2017/2/27.
 */
public class ShoppingTrolley {
    private int id; 	/** 主键 */
    private int userId; 	/** 用户id */
    private int productId; 	/** 商品id */
    private int num; 	/** 添加商品数量 */
    private int isDelete; 	/** 是否删除，1不删除，2已删除 */
    private Date createTime; 	/** 添加时间 */

    //region getters and setters
    public int getId() {return id;}
    public void setId(int id) {this.id = id;}
    public int getUserId() {return userId;}
    public void setUserId(int userId) {this.userId = userId;}
    public int getProductId() {return productId;}
    public void setProductId(int productId) {this.productId = productId;}
    public int getNum() {return num;}
    public void setNum(int num) {this.num = num;}
    public int getIsDelete() {return isDelete;}
    public void setIsDelete(int isDelete) {this.isDelete = isDelete;}
    public Date getCreateTime() {return createTime;}
    public void setCreateTime(Date createTime) {this.createTime = createTime;}
    //endregion

    @Override
    public String toString() {
        return "ShoppingTrolley{" +
                "id=" + id +
                ", userId=" + userId +
                ", productId=" + productId +
                ", num=" + num +
                ", isDelete=" + isDelete +
                ", createTime=" + createTime +
                '}';
    }
}
